package plotter;

import java.util.List;

import processor.RiskFactor;
import bean.rule.RuleCondition;
import bean.rule.RuleParameter;

public class GraphPlotterInfo {
	
	private RiskFactor riskFactor;
	
	private RuleCondition condition;
	
	private RuleParameter parameter;
	
	private String currentValue;
	
	private Point[] graphPoints;
	
	public Point[] getGraphPoints() {
		return graphPoints;
	}

	public void setGraphPoints(List<Point> graphPoints) {
		this.graphPoints = new Point[graphPoints.size()];
		this.graphPoints = graphPoints.toArray(this.graphPoints);
	}
	
	public GraphPlotterInfo(){
		
	}
	

	public GraphPlotterInfo(RiskFactor riskFactor, RuleCondition condition,
			RuleParameter parameter, String currentValue) {
		super();
		this.riskFactor = riskFactor;
		this.condition = condition;
		this.parameter = parameter;
		this.currentValue = currentValue;
	}

	public RiskFactor getRiskFactor() {
		return riskFactor;
	}

	public RuleCondition getCondition() {
		return condition;
	}

	public RuleParameter getParameter() {
		return parameter;
	}
	
	public String getCurrentValue() {
		return currentValue;
	}

}
